<?php
/**
* header_b 副头
* $Id: header_b.php 154 2010-05-06 02:45:29Z bwanglei $
*/
?>

<div id="header_b">
	<?php
	if (apf_is_login($mysql_conn)) {
		echo $_SESSION['username'].' 您好';
		?>
		&nbsp;|&nbsp; <a href="<?php echo $apf_settings['base_url'];?>/root/index.php">控制面板</a>
		&nbsp;|&nbsp; <a href="<?php echo $apf_settings['base_url'];?>/logout.php?source=<?php echo apf_full_url();?>">退出登录</a>
		<?php
	} else {
		echo '<a href="'.$apf_settings['base_url'].'/login.php?source='.apf_full_url().'">登录</a> &nbsp; | &nbsp; <a href="reg.php">注册</a>';
	}
	?>
</div>
